;(function ($, window, document, undefined) {
	 //城市转换名字
	$("#areaAll").change(function(){
		var nameArea = $(this).find("option:selected").text();
		$("#areaAllName").text(nameArea);
	});
	//设置警告规则
	$(".setWarningRule").click(function(){
		var obj = $(this);
		var t= layer.confirm('<div class="margin20">设置警告规则设置警告规则设置警告规则</div>', {
		    btn: ['确定','取消'],
		    type:1,
		    title:"设置警告规则",
		},function(){
			layer.close(t);
		}, function(){
			layer.close(t);
		});
	});
        //绑牌分析
        var myChart5 = echarts.init(document.getElementById('main5')); 
        var myChart6 = echarts.init(document.getElementById('main6')); 
       
		option5 = {
		    tooltip : {
		        trigger: 'axis',
		        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
		            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
		        }
		    },
		    legend: {
		        data:['绑牌用数户','注册用户数']
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : false,
		            data : ['201606','201607','201608','201609','201610','201611','201612']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'绑牌用数户',
		            type:'line',
		            barWidth : 5,
		            data:[320, 332, 301, 334, 390, 330, 320]
		        },
		       	{
		            name:'注册用户数',
		            type:'line',
		            data:[62, 101, 94, 106, 179, 100, 157],
		        },
		        
		    ]
		};

		option6 = {
		    tooltip : {
		        trigger: 'axis',
		        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
		            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
		        }
		    },
		    legend: {
		        data:['注册用户数','绑牌用数户']
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : false,
		            data : ['201606','201607','201608','201609','201610','201611','201612']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'绑牌用数户',
		            type:'line',
		            barWidth : 5,
		            data:[320, 332, 301, 334, 390, 330, 320]
		        },
		       	{
		            name:'注册用户数',
		            type:'line',
		            data:[62, 101, 94, 106, 179, 100, 157],
		        },
		        
		    ]
		};

        //绑牌分析
        myChart5.setOption(option5); 
        myChart6.setOption(option6); 
     
})(window.jQuery, window, document);
	
	


 